Any data used in a script must have an associated data type. Data types allow the VectorScript compiler to determine how much memory to allocate for storage during script execution, as well as how to act on that data when performing calculations or other operations.
A data type must be specified whenever a variable is declared. Also, whenever a procedure or function is declared, a data type must be specified for each parameter as well as the return value in the case of a function (procedures and functions are covered in greater detail in
User-Defined Functions).
There are two categories of data types within VectorScript: fundamental types and
user-defined types. Fundamental types are predefined by the compiler, while user-defined types are defined within the script code itself.